package rendava;
import java.awt.FontMetrics;


public class Centre extends SimpleTag
{
	private String text;
	/**
	 * 
	 * @param renderer The renderer that is rendering the page
	 */
	public void renderInfo(Renderer renderer)
	{
		FontMetrics fm = renderer.getGraphics().getFontMetrics();
		renderer.setX((renderer.getCanvas().getWidth()/2));
		renderer.setX(renderer.getX() - (fm.stringWidth(text)/2));
	}
	
	public String closeTag()
	{
		return "</center>";
	}

	

}
